package com.kaifamiao.statements;

// 鹳：Stork
public class Stork {
    public static void main(String[] args) {

        for ( int i = 1 ; i < 6 ; i++ ) {
            System.out.println( "before break: " + i );
            if( i == 2 ) {
                break;
            }
            System.out.println( "after break: " + i );
        }

        System.out.println( "- ".repeat( 15 ) );

        for ( int i = 1 ; i < 6 ; i++ ) {
            System.out.println( "before break: " + i );
            if( i == 2 ) {
                continue;
            }
            System.out.println( "after break: " + i );
        }
    }
}
